<!doctype html>
<html>
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="description" content="">
  <meta name="keywords" content="">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
  <title>Star | Blog</title>
  <meta name="renderer" content="webkit">
  <meta http-equiv="Cache-Control" content="no-siteapp"/>
  <link rel="icon" type="image/png" href="{{ asset('Home/') }}/assets/i/favicon.png">
  <meta name="mobile-web-app-capable" content="yes">
  <link rel="icon" sizes="192x192" href="{{ asset('Home/') }}/assets/i/app-icon72x72@2x.png">
  <meta name="apple-mobile-web-app-capable" content="yes">
  <meta name="apple-mobile-web-app-status-bar-style" content="black">
  <meta name="apple-mobile-web-app-title" content="Amaze UI"/>
  <link rel="apple-touch-icon-precomposed" href="{{ asset('Home/') }}/assets/i/app-icon72x72@2x.png">
  <meta name="msapplication-TileImage" content="{{ asset('Home/') }}/assets/i/app-icon72x72@2x.png">
  <meta name="msapplication-TileColor" content="#0e90d2">
  <link rel="stylesheet" href="{{ asset('Home/') }}/assets/css/amazeui.min.css">
  <link rel="stylesheet" href="{{ asset('Home/') }}/assets/css/app.css">
</head>

<body id="blog">

{{-- <header class="am-g am-g-fixed blog-fixed blog-text-center blog-header">
    <div class="am-u-sm-8 am-u-sm-centered">
        <img width="200" src="http://s.amazeui.org/media/i/brand/amazeui-b.png" alt="Amaze UI Logo"/>
        <h2 class="am-hide-sm-only">中国首个开源 HTML5 跨屏前端框架</h2>
    </div>
</header>
<hr> --}}
<nav class="am-g am-g-fixed blog-fixed blog-nav">
<button class="am-topbar-btn am-topbar-toggle am-btn am-btn-sm am-btn-success am-show-sm-only blog-button" data-am-collapse="{target: '#blog-collapse'}" ><span class="am-sr-only">导航切换</span> <span class="am-icon-bars"></span></button>

  <div class="am-collapse am-topbar-collapse" id="blog-collapse">
    <ul class="am-nav am-nav-pills am-topbar-nav">
      <li class="am-active"><a href="{{ url('/') }}">首页</a></li>
      
      @php
        $m = 1;
      @endphp
      @for($m = 0; $m < count($categoriesList); $m++)

        @if($m <= 5)  {{-- $m控制显式显示分类的格式 --}}

          <li><a href="lw-article.html">{{$categoriesList["$m"]['name']}}</a></li>

        @else
          
          <li class="am-dropdown" data-am-dropdown>
            <a class="am-dropdown-toggle" data-am-dropdown-toggle href="javascript:;">
              更多分类 <span class="am-icon-caret-down"></span>
            </a>
            <ul class="am-dropdown-content">

              @for($n = $m; $n < count($categoriesList); $n++)
                <li><a href="lw-index.html">{{$categoriesList["$n"]['name']}}</a></li>
              @endfor
              
            </ul>
          </li>

          @php
            break; 
          @endphp

        @endif

      @endfor

    </ul>
    
  </div>

</nav>
<hr>


<!-- content srart -->
<div class="am-g am-g-fixed blog-fixed">
    <div class="am-u-md-8 am-u-sm-12">

        @foreach ($articlesList as $article)
        <article class="am-g blog-entry-article">
            <div class="am-u-lg-6 am-u-md-12 am-u-sm-12 blog-entry-img">
                <img src="{{$article['cover']}}" alt="" class="am-u-sm-12" width="400" height="200">
            </div>
            <div class="am-u-lg-6 am-u-md-12 am-u-sm-12 blog-entry-text">
                {{-- <span><a href="" class="blog-color">article &nbsp;</a></span> --}}

                @if($article['is_top'] == 1)
                  <span class="am-badge am-badge-danger am-radius am-text-default">顶置</span> &nbsp; 
                @endif
                
                {{-- 作者 --}}
                <i class="am-icon-user"></i>
                <span>&nbsp; {{$article['author']}} &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
                
                {{-- 更新时间 --}}
                <i class="am-icon-clock-o"></i>
                <span>&nbsp; {{ substr($article['updated_at'], 0, 10)}} &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
                
                {{-- 所属分组 --}}
                <i class="am-icon-tag"></i>
                <span>&nbsp; {{ $simpleCategories[$article['category_id']] }}</span>

                {{-- 标题 --}}
                <h1 style="word-wrap:break-word; word-break:break-all; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical;-webkit-line-clamp: 2;">
                  <a href="{{ url("article/") . '/' . $article['id'] }}">{{$article['title']}}</a>
                </h1>

                {{-- 描述 --}}
                <p style="word-wrap:break-word; word-break:break-all; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical;-webkit-line-clamp: 3;">
                  &nbsp;&nbsp;&nbsp;&nbsp;{{$article['description']}}
                </p>
                {{-- <p><a href="" class="blog-continue">continue reading</a></p> --}}
            </div>
        </article>
        @endforeach

        <ul class="am-pagination">
          <li class="am-pagination-prev"><a href="">&laquo; Prev</a></li>
          <li class="am-pagination-next"><a href="">Next &raquo;</a></li>
        </ul>

    </div>

    <div class="am-u-md-4 am-u-sm-12 blog-sidebar">
        
        <div class="blog-sidebar-widget blog-bor">
            <h2 class="blog-text-center blog-title"><span>Search</span></h2>
            <form action="{{ url('') }}" class="" role="search">
              <div class="am-form-group">
                <input type="text" class="am-form-field am-input-sm" placeholder="搜索">
              </div>
            </form>
        </div>

        <div class="blog-sidebar-widget blog-bor">
            <h2 class="blog-text-center blog-title"><span>About ME</span></h2>
            <img src="{{ asset('Home/') }}/assets/i/f14.jpg" alt="about me" class="blog-entry-img" >
            <p>妹纸</p>
            <p>
        我是妹子UI，中国首个开源 HTML5 跨屏前端框架
        </p><p>我不想成为一个庸俗的人。十年百年后，当我们死去，质疑我们的人同样死去，后人看到的是裹足不前、原地打转的你，还是一直奔跑、走到远方的我？</p>
        </div>

        {{-- <div class="blog-sidebar-widget blog-bor">
            <h2 class="blog-text-center blog-title"><span>Contact ME</span></h2>
            <p>
                <a href=""><span class="am-icon-qq am-icon-fw am-primary blog-icon"></span></a>
                <a href=""><span class="am-icon-github am-icon-fw blog-icon"></span></a>
                <a href=""><span class="am-icon-weibo am-icon-fw blog-icon"></span></a>
                <a href=""><span class="am-icon-reddit am-icon-fw blog-icon"></span></a>
                <a href=""><span class="am-icon-weixin am-icon-fw blog-icon"></span></a>
            </p>
        </div> --}}

        <div class="blog-clear-margin blog-sidebar-widget blog-bor am-g ">
            <h2 class="blog-title"><span>TAG cloud</span></h2>
            <div class="am-u-sm-12 blog-clear-padding">

            @foreach($tagsList as $tag)
              <a href="" class="blog-tag">{{$tag['name']}}</a>
            @endforeach

            </div>
        </div>

        <div class="blog-clear-margin blog-sidebar-widget blog-bor am-g ">
            <h2 class="blog-title"><span>Friendly Link</span></h2>
            <div class="am-u-sm-12 blog-clear-padding">

            
              <a href="" class="blog-tag">友情链接</a>
            

            </div>
        </div>
        
        <div class="blog-clear-margin blog-sidebar-widget blog-bor am-g ">
          <h2 class="blog-title"><span>Hot Articles</span></h2>
          <ul class="am-list am-list-border">
           <li>
            <a href="#" class="am-text-truncate" style="text-align: left;">
              <i class="am-icon-book am-icon-fw"></i>
              我把最深沉的秘密放在那里。123123123123123
            </a>

          </li>
           <li><a href="#" class="am-text-truncate"><i class="am-icon-pencil am-icon-fw"></i>你不懂我，我不怪你。</a></li>
          </ul>
        </div>

        {{-- 
        <div class="blog-sidebar-widget blog-bor">
            <h2 class="blog-title"><span>么么哒</span></h2>
            <ul class="am-list">
                <li><a href="#">每个人都有一个死角， 自己走不出来，别人也闯不进去。</a></li>
                <li><a href="#">我把最深沉的秘密放在那里。</a></li>
                <li><a href="#">你不懂我，我不怪你。</a></li>
                <li><a href="#">每个人都有一道伤口， 或深或浅，盖上布，以为不存在。</a></li>
            </ul>
        </div>
         --}}

    </div>
</div>
<!-- content end -->


 <footer class="blog-footer">
    <div class="am-g am-g-fixed blog-fixed am-u-sm-centered blog-footer-padding">
        <div class="am-u-sm-12 am-u-md-4- am-u-lg-4">
            <h3>模板简介</h3>
            <p class="am-text-sm">这是一个使用amazeUI做的简单的前端模板。<br> 博客/ 资讯类 前端模板 <br> 支持响应式，多种布局，包括主页、文章页、媒体页、分类页等<br>嗯嗯嗯，不知道说啥了。外面的世界真精彩<br><br>
            Amaze UI 使用 MIT 许可证发布，用户可以自由使用、复制、修改、合并、出版发行、散布、再授权及贩售 Amaze UI 及其副本。</p>
        </div>
        <div class="am-u-sm-12 am-u-md-4- am-u-lg-4">
            <h3>社交账号</h3>
            <p>
                <a href=""><span class="am-icon-qq am-icon-fw am-primary blog-icon blog-icon"></span></a>
                <a href=""><span class="am-icon-github am-icon-fw blog-icon blog-icon"></span></a>
                <a href=""><span class="am-icon-weibo am-icon-fw blog-icon blog-icon"></span></a>
                <a href=""><span class="am-icon-reddit am-icon-fw blog-icon blog-icon"></span></a>
                <a href=""><span class="am-icon-weixin am-icon-fw blog-icon blog-icon"></span></a>
            </p>
            <h3>Credits</h3>
            <p>我们追求卓越，然时间、经验、能力有限。Amaze UI 有很多不足的地方，希望大家包容、不吝赐教，给我们提意见、建议。感谢你们！</p>          
        </div>
        <div class="am-u-sm-12 am-u-md-4- am-u-lg-4">
              <h1>我们站在巨人的肩膀上</h1>
             <h3>Heroes</h3>
            <p>
                <ul>
                    <li>jQuery</li>
                    <li>Zepto.js</li>
                    <li>Seajs</li>
                    <li>LESS</li>
                    <li>...</li>
                </ul>
            </p>
        </div>
    </div>    
    <div class="blog-text-center">© 2015 AllMobilize, Inc. Licensed under MIT license. Made with love By LWXYFER</div>    
  </footer>



<!--[if (gte IE 9)|!(IE)]><!-->
<script src="{{ asset('Home/') }}/assets/js/jquery.min.js"></script>
<!--<![endif]-->
<!--[if lte IE 8 ]>
<script src="http://libs.baidu.com/jquery/1.11.3/jquery.min.js"></script>
<script src="http://cdn.staticfile.org/modernizr/2.8.3/modernizr.js"></script>
<script src="assets/js/amazeui.ie8polyfill.min.js"></script>
<![endif]-->
<script src="{{ asset('Home/') }}/assets/js/amazeui.min.js"></script>
<!-- <script src="assets/js/app.js"></script> -->
</body>
</html>